import React, { Component, useState } from 'react';
import Dialog from '../components/Dialog';

export default function DialogPage() {
  const [show, setShow] = useState(false);
  return (
    <div>
      <h3>DialogPage</h3>
      <button
        onClick={() => {
          setShow(!show);
        }}
      >
        change
      </button>
      {/* {<Dialog visible={show} />} */}
      {show && <Dialog visible={true} />}
    </div>
  );
}
